package com.gxa.entity.community;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @ClassName Community
 * @Description
 * @Author Mr.YUAN
 * @Date 2022/10/11 18:40
 */

@Getter
@Setter
@Accessors(chain = true)
@TableName("t_community")
@AllArgsConstructor
@NoArgsConstructor
public class Community implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "社区id,主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "社区编号")
    @TableField("com_num")
    private String comNum;

    @ApiModelProperty(value = "社区名称")
    @TableField("com_name")
    private String comName;

    @ApiModelProperty(value = "社区地址")
    @TableField("com_address")
    private String comAddress;

    @TableLogic(value = "0" ,delval ="1")
    @TableField("deleted")
    private Integer isDelete;

    @Override
    public String toString() {
        return "Community{" +
                "id=" + id +
                ", comNum='" + comNum + '\'' +
                ", comName='" + comName + '\'' +
                ", comAddress='" + comAddress + '\'' +
                '}';
    }
}